// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
//引入bable-polyfill cnpm install babel-polyfill --save  解决部分手机不兼容es6
import 'babel-polyfill'
// 引入vuex
import store from './store'
//引入第三方轮播图插件 cnpm install vue-awesome-swiper@2.6.7 --save
import VueAwesomeSwiper from 'vue-awesome-swiper'
//解决部分浏览器点击300ms延迟问题,先cnpm install fastclick --save安装
import fastClick from 'fastclick'
//初始化样式文件
import 'styles/reset.css'
//解决边框1px问题
import 'styles/border.css'
//引入iconfont图标css
import 'styles/iconfont.css'
//引入轮播图插件css
import 'swiper/dist/css/swiper.css'
//记得安装stylus, cnpm install stylus --save 和 cnpm install stylus-loader --save

Vue.config.productionTip = false
fastClick.attach(document.body)
Vue.use(VueAwesomeSwiper)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})